package com.jbit.hxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jbit.hxy.model.po.Admin;
import org.apache.ibatis.annotations.Update;

public interface AdminMapper extends BaseMapper<Admin> {

    int selectCountByUserName(String userName);
    @Update("update wx_employee set userName = #{userName}, password = #{password} ,name = #{name}, phone = #{phone},status = #{status},userType = #{userType},updateTime = #{updateTime} where id = #{id}")
    void updateAdminById(Admin admin);
}
